package com.huaixia.shorturl.service;

import com.huaixia.shorturl.common.ApiResponse;
import com.huaixia.shorturl.domain.UrlMap;
import com.huaixia.shorturl.pagehelper.PageResult;
import org.springframework.data.domain.Page;

/**
 * @author biliyu
 * @date 2023/6/7 08:57
 */
public interface UrlMapService {

    int insert(UrlMap urlMap);

    String getLongUrlByShortUrl(String shortUrl);

    UrlMap getByShortUrl(String shortUrl);

    PageResult<UrlMap> list(Integer pageNo, Integer pageSize);
}
